import { fileURLToPath, URL } from 'node:url'

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
const __dirname = fileURLToPath(new URL('.', import.meta.url));
import { loder_pxtovw } from './loder_pxtovw';

// https://vitejs.dev/config/
export default defineConfig({
  base: "/",
  plugins: [
    vue(),
  ],
  css: {
    postcss: {
      plugins: [loder_pxtovw],
    },
  },
  resolve: {
    alias: {
      '@': `${__dirname}/src`,
    },
  }
})
